<div class="ltem_select font12">
  <div class="sli <if condition="$Think.get.sort eq ''">select</if>" data-href="{:query_url('article/lists', array('sort'=>'', 'sort_tit'=>'最新'))}">最新</div>
  <div class="sli <if condition="$Think.get.sort eq 'hot'">select</if>" data-href="{:query_url('article/lists', array('sort'=>'hot', 'sort_tit'=>'热门'))}">热门</div>
  <div class="sli <if condition="$Think.get.sort eq 'exc'">select</if>" data-href="{:query_url('article/lists', array('sort'=>'exc', 'sort_tit'=>'精华'))}">精华</div>
 
</div>

<script>
$(function(){
    $(".ltem_select>.sli").on('click', function () {
        var href = $(this).data('href');
        location.href = href;
    });
});
</script>
